package com.wenjie.original.service.impl;

import com.mybatisflex.core.query.QueryWrapper;
import com.wenjie.original.entity.CodeList;
import com.wenjie.original.entity.table.CodeListTableDef;
import com.wenjie.original.flex_config.baseInterface.Cus_ServiceImp;
import com.wenjie.original.mapper.CodeListMapper;
import com.wenjie.original.service.ICodeListService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 编号表  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-10-28 16:51:36
 */
@Service
public class CodeListServiceImpl extends Cus_ServiceImp<CodeListMapper, CodeList> implements ICodeListService {

    @Override
    public CodeList getbyCode(String code) {
        return this.getOne(QueryWrapper.create().where(CodeListTableDef.CODE_LIST.CODE.eq(code)));
    }
}
